import Layout from '@/views/layout/Layout'

const statement_information = {
  path: '/statement_information',
  component: Layout,
  alwaysShow: true,
  name: 'statement_information',
  meta: { title: '查看业绩', roles: ['1', '15', '17', '18'], icon: 'dashboard' },
  children: [
    {
      path: '',
      name: 'statement_information.general',
      component: () => import('@/views/statement_information/general/index'),
      meta: {title: '业绩总览', roles: ['1', '15'], icon: 'subsystem'}
    },
    {
      path: 'sales_volume',
      name: 'sales_volume',
      component: () => import('@/views/statement_information/sales_volume'),
      meta: {title: '全员销售额', roles: ['1', '15'], icon: 'subsystem'}
    },
    // {
    //   path: 'summary',
    //   name: 'cost_manage.summary',
    //   component: () => import('@/views/statement_information/summary/index'),
    //   meta: { title: '公众号分摊', roles: ['1', '17', '18'], icon: 'subsystem' }
    // },
    // {
    //   path: 'summary/preview',
    //   name: 'cost_manage.summary.preview',
    //   hidden: true,
    //   component: () => import('@/views/statement_information/summary/preview'),
    //   meta: { listPath: '/cost_manage/summary', roles: ['1', '17', '18'] }
    // }
  ]
}

export default statement_information
